﻿namespace ScrumFactory.Services {

    using System.ServiceModel;
    using System.Collections.Generic;

    [ServiceContract()]
    public interface ITeamService {

        [OperationContract]
        MemberProfile GetMember(string memberUId);

        [OperationContract()]
        ICollection<MemberProfile> GetAllMembers();

        [OperationContract()]
        ICollection<MemberProfile> GetProjectMembers(string projectUId);

        [OperationContract()]
        void AddProjectMembership(string memberUId, ProjectMembership membership);

        [OperationContract()]
        void UpdateProjectMembership(string memberUId, ProjectMembership membership);

        [OperationContract()]
        void RemoveProjectMembership(string memberUId, ProjectMembership membership);
    }
}
